/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyectofincas;

import java.util.Scanner;

/**
 *
 * @author ASIR2
 */

public class Cercado {
Scanner sca1 = new Scanner(System.in);
    float coste;

public Cercado(){
}
        public void tipoCerco() {
        int cerco;
        System.out.println("Selecciona tipo de cerco (del 1 al 3):");
        cerco = sca1.nextInt();
        switch (cerco) {
            case 1:
                coste = 0.54F;
                break;
            case 2:
                coste = 0.36F;
                break;
            case 3:
                coste = 0.28F;
                break;
           
        }
}
        public float getCost(){
            return coste;
        }
}
